/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张宇田
 * Date: 2024-10-24
 * Time: 11:52
 */
public class SystemUtil {
    public static boolean isAdmin(String userId){
        return userId.toLowerCase().equals("admin");
}
    public static void main(String[] args){
        //System.out.println(isAdmin("Admin"));
       // System.out.println("Admin".toLowerCase());
        String s1="abc"+"def";//1
        String s2=new String(s1);//2
        if(s1.equals(s2))//3
            System.out.println(".equals succeeded");//4
        if(s1==s2)//5
            System.out.println("==succeeded");//6
    }
}

